{include file="public/header" /}
<div id="dcWrap">
    <!--包含公共模版-->
    {include file="public/lefter" /}
    <div id="dcMain">
        <!-- 当前位置 -->
        <div id="urHere">管理中心<b>></b><strong>自定义导航栏</strong></div>
        <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3><a href="{:url('nav/index')}" class="actionBtn">返回列表</a>自定义导航栏</h3>
            {js href="__PUBLIC__/js/jquery.tab.js" /}
            <script type="text/javascript">
                $(function () {
                    $(".idTabs").idTabs();
                });
            </script>
            <div class="idTabs">
                <ul class="tab">
                    <li><a href="#nav_add">添加站内导航</a></li>
                    <li><a href="#nav_defined">添加自定义链接</a></li>
                </ul>
                <div class="items">
                    <div id="nav_add">
                        <form action="{:url('nav/add')}" method="post">
                            <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableBasic">
                                <tr>
                                    <td width="80" height="35" align="right">栏目模型</td>
                                    <td>
                                        <select name="model" onchange="change('nav_name', this)">
                                            <option value="">请您选择栏目模型</option>
                                            {volist name="model" id="m"}
                                            <option value="{$m.id}" title="{$m.name}">- {$m.name}</option>
                                            {/volist}
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="80" height="35" align="right">导航名称</td>
                                    <td>
                                        <input type="text" id="nav_name" name="name" value="" size="40" class="inpMain"
                                               required="required"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">别名（英文）</td>
                                    <td>
                                        <input type="text" name="ename" value="" class="inpMain" required="required"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">位置</td>
                                    <td>
                                        <label for="type_0">
                                            <input type="radio" name="position" id="type_0" value="1" checked="true">
                                            主导航</label>
                                        <label for="type_1">
                                            <input type="radio" name="position" id="type_1" value="2">
                                            底部</label>
                                        <label for="type_2">
                                            <input type="radio" name="position" id="type_2" value="3">
                                            侧边</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">上级分类</td>
                                    <td id="parent">
                                        <select name="parent_id">
                                            <option value="0">无</option>
                                            {volist name="category" id="c"}
                                            <option value="{$c.id}" title="{$c.name}">- {$c.name}</option>
                                            {/volist}
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">关键词</td>
                                    <td>
                                        <input type="text" name="keywords" value="" class="inpMain" />
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">描述</td>
                                    <td>
                                        <textarea name="description" class="textArea" rows="5" cols="54"></textarea>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">排序</td>
                                    <td>
                                        <input type="text" name="sort" value="50" size="5" class="inpMain"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">是否显示</td>
                                    <td>
                                        <label for="type_0">
                                            <input type="radio" name="status" value="0" checked="true">
                                            显示</label>
                                        <label for="type_1">
                                            <input type="radio" name="status" value="1">
                                            不显示</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="hidden" name="token" value="30fa081a"/>
                                        <input name="submit" class="btn" type="submit" value="提交"/>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                    <div id="nav_defined">
                        <form action="nav.php?rec=insert" method="post">
                            <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tableBasic">
                                <tr>
                                    <td width="80" height="35" align="right">导航名称</td>
                                    <td>
                                        <input type="text" name="nav_name" value="" size="40" class="inpMain"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">位置</td>
                                    <td>
                                        <label for="type_0">
                                            <input type="radio" name="type" id="type_0" value="middle" checked="true"
                                                   onChange="dou_callback('nav.php?rec=nav_select&id=', 'type', this.value, 'parent_external')">
                                            主导航</label>
                                        <label for="type_1">
                                            <input type="radio" name="type" id="type_1" value="top"
                                                   onChange="dou_callback('nav.php?rec=nav_select&id=', 'type', this.value, 'parent_external')">
                                            顶部</label>
                                        <label for="type_2">
                                            <input type="radio" name="type" id="type_2" value="bottom"
                                                   onChange="dou_callback('nav.php?rec=nav_select&id=', 'type', this.value, 'parent_external')">
                                            底部</label>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">链接地址</td>
                                    <td>
                                        <input type="text" name="guide" value="" size="80" class="inpMain"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">上级分类</td>
                                    <td id="parent_external">
                                        <select name="parent_id">
                                            <option value="0">无</option>
                                            <option value="1"> 公司简介</option>
                                            <option value="2">- 企业荣誉</option>
                                            <option value="3">- 发展历程</option>
                                            <option value="4">- 联系我们</option>
                                            <option value="5"> 产品中心</option>
                                            <option value="10">- 电子数码</option>
                                            <option value="22">-- 智能手机</option>
                                            <option value="23">-- 平板电脑</option>
                                            <option value="11">- 家居百货</option>
                                            <option value="12">- 母婴用品</option>
                                            <option value="6"> 文章中心</option>
                                            <option value="13">- 公司动态</option>
                                            <option value="14">- 行业新闻</option>
                                            <option value="7"> 营销网络</option>
                                            <option value="15"> 企业荣誉</option>
                                            <option value="8"> 人才招聘</option>
                                            <option value="9"> 联系我们</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="35" align="right">排序</td>
                                    <td>
                                        <input type="text" name="sort" value="50" size="5" class="inpMain"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <input type="hidden" name="token" value="30fa081a"/>
                                        <input type="hidden" name="nav_menu" value="nav,0"/>
                                        <input name="submit" class="btn" type="submit" value="提交"/>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="clear"></div>
    <!--包含公共模版-->
    {include file="public/footer" /}
    <div class="clear"></div>
</div>
</body>
</html>